function assist(){
	if($("#assistDeptAttachment").val() == null || $("#assistDeptAttachment").val().length == 0){
		toastr.error('请选择文件');
		return;
	}
	if($("#assistDeptName").val() == null || $("#assistDeptName").val().length == 0){
		toastr.error('请输入文件名');
		return;
	}
	var formData = new FormData();
    formData.append("assistDeptAttachment", document.getElementById("assistDeptAttachment").files[0]);
    formData.append("assistDeptName", $("#assistDeptName").val());
    formData.append("assistDeptNote", $("#assistDeptNote").val());
    formData.append("caseId", $("#caseId").val());
	$.ajax({
		url : "verify",
		type : "post",
		processData: false,
		contentType: false,
		data : formData,
		success : function(res) {
			console.log(res)
			if(res.status == 200){
				window.location.href="../case/case_info?caseId="+$("#caseId").val();
			} else {
				toastr.error('上传文件错误')
			}
		},
		error : function(e) {
			alert("错误！！");
			window.clearInterval(timer);
		}
	});
}

$(function(){
	
})
